www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawMcDbObject::GetExtensionDictionary 方法

返回对象的扩展字典

IDL
[helpstring("method GetExtensionDictionary")]
HRESULT GetExtensionDictionary([out,retval] IMxDrawDictionary** ppDictionary);

例如:

       // 得到实体扩展字典
         MxDrawDictionary dict = ent.GetExtensionDictionary();
         if (dict == null)
             return;

         // 得到字典下自己写数据的字典
         MxDrawDictionary myDict = (MxDrawDictionary)dict.GetAt("MyDict");
         if (myDict == null)
         {
             return ;

         }

         // 得到字典内扩展记录.
         MxDrawXRecord rec = (MxDrawXRecord)myDict.GetAt("MyGlobalData");

         if (rec == null)
         {

             return ;
         }
         // 输出扩展记录中的数据.
         MxDrawResbuf data = rec.GetXRecordData();
         data.PrintData();
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!